package com.yu.footballpromotionliveadmin.service;

import com.yu.footballpromotionliveadmin.dto.DTO;
import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.EventRecords;
import com.yu.footballpromotionliveadmin.vo.EventRecordsView;

public interface EventRecordsService {

    /**
     * 查询全部
     * @return
     */
    public DTO<EventRecords> getAllEventRecordss() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<EventRecords> getEventRecordsById(String erno) throws Exception;
    /**
     *删除
     * @param erno
     * @return
     */
    public DTO<EventRecords> deleteEventRecords(String erno) throws Exception;
    /**
     *  修改
     * @param eventRecords
     * @return
     */
    public DTO<EventRecords> updateEventRecords(EventRecordsView eventRecords)  throws Exception;
    /**
     *  增加
     * @param eventRecords
     * @return
     */
    public DTO<EventRecords> addEventRecords(EventRecordsView eventRecords)  throws Exception;

    public DTO<EventRecords> getEventRecordssByPage(PageInfo pageInfo) throws Exception;

    public DTO<EventRecords> getEventRecordssWithOrders(String erno)  throws Exception;

    public DTO<EventRecords> activate(String erno)  throws Exception;

    public DTO<EventRecords> lettory(String erno, String giftName)  throws Exception;
}
